package cn.iocoder.yudao.framework.operatelog.core.Logger;


import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;

@Data
@TableName("log_object")
public class logObject implements Serializable {

    private static final long serialVersionUID = 8825150314553941917L;

    @TableId
    String id;

    @TableField("package_name")
    String packagName;

    @TableField("time")
    String time;

    @TableField("ip")
    String ip;

    @TableField("userId")
    String userId;

    @TableField("class_name")
    String ClassName;

    public logObject(String time, String ip, String packagName, String ClassName) {
        this.id = null;
        this.time = "记录时间:" + time;
        this.ip = "记录ip:" + ip;
        this.packagName = "包名:" + packagName;
        this.ClassName = "类名:" + ClassName;
        this.userId = null;
    }

    public logObject(String time, String ip, String packagName, String ClassName, String UserId) {
        this.id = null;
        this.time = "记录时间:" + time;
        this.ip = "记录ip:" + ip;
        this.packagName = "包名:" + packagName;
        this.ClassName = "类名:" + ClassName;
        this.userId = UserId;
    }
}
